package grails.coherence.extractor;

import grails.test.GrailsUnitTestCase;


class GroovyPropertyValueExtractorTest extends GrailsUnitTestCase {
	
	void testShouldExtractNameProperty() {
		def bean = new TypicalGroovyBean(name:'Obama')
		def underTest = new GroovyPropertyValueExtractor('name')
		assertEquals('Obama', underTest.extract(bean))
	}
}

class TypicalGroovyBean  {
	String name
}
